const express = require('express')
const router = express.Router()
const Backend = require('../../middleware/Backend/Backend')
const jwtParse = require('../../middleware/jwtParse/jwtParse')

router.use(express.json())

router.post('/userList',jwtParse, Backend.userList)
router.post('/allOrder',jwtParse, Backend.allOrder)
router.get('/getToken',jwtParse, Backend.getToken)
router.post('/uploadShop',jwtParse, Backend.uploadShop)
router.post('/editShop',jwtParse, Backend.editShop)
router.get('/shopDelete',jwtParse, Backend.shopDelete)
router.get('/orderRefund',jwtParse, Backend.orderRefund)
router.post('/admin_login', Backend.login)
router.post('/admin_register', Backend.register)
router.get('/orderData',jwtParse, Backend.orederData)
router.get('/dayOrder',jwtParse, Backend.dayOrder)
router.post('/log',jwtParse, Backend.log)
router.post('/userUpdate',jwtParse, Backend.userUpdate)
router.get('/userDelete',jwtParse, Backend.userDelete)
router.post('/searchGoods',jwtParse, Backend.searchGoods)
module.exports = router